package com.spddr.pmos.repos;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.spddr.pmos.jpa.CustomerEvalId;
import com.spddr.pmos.jpa.CustomerPerform;

public interface CustomerPerformRepos extends JpaRepository<CustomerPerform, CustomerEvalId> {
	List<CustomerPerform> findByIdCustomer(long customer);

	@Query("DELETE FROM CustomerPerform WHERE id.customer=?")
	void deleteByCustomer(long customer);
}
